#include "bsp_fric.h"
#include "main.h"
<<<<<<< HEAD
extern TIM_HandleTypeDef htim1;
=======

extern TIM_HandleTypeDef htim1;

/* 关闭摩擦轮 */
>>>>>>> f733ccc (麦轮步兵底盘跟随云台性能与摩擦轮转速稳定性提升 拨弹键位修改)
void fric_off(void)
{
    __HAL_TIM_SetCompare(&htim1, TIM_CHANNEL_1, FRIC_OFF);
    __HAL_TIM_SetCompare(&htim1, TIM_CHANNEL_2, FRIC_OFF);
}
<<<<<<< HEAD
=======

/* 开启摩擦轮 */
>>>>>>> f733ccc (麦轮步兵底盘跟随云台性能与摩擦轮转速稳定性提升 拨弹键位修改)
void fric1_on(uint16_t cmd)
{
    __HAL_TIM_SetCompare(&htim1, TIM_CHANNEL_1, cmd);
}
<<<<<<< HEAD
=======

>>>>>>> f733ccc (麦轮步兵底盘跟随云台性能与摩擦轮转速稳定性提升 拨弹键位修改)
void fric2_on(uint16_t cmd)
{
    __HAL_TIM_SetCompare(&htim1, TIM_CHANNEL_2, cmd);
}


